import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// antdesign
import Antd from 'ant-design-vue';
import "ant-design-vue/dist/reset.css";

// 路由
import router from './router';

// 引入图标
import * as Icons from '@ant-design/icons-vue';
// 引入Pinia
import { createPinia } from "pinia";

// 引入通用样式
import '@/assets/css/common.css'

// 引入axios
import axios from "axios";

// 国际化
import { i18n } from './i18n';


const pinia = createPinia()

const app = createApp(App);

// 注册图标
Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key]);
});

app.use(router);
app.use(Antd);
app.use(pinia);
app.use(i18n);
app.mount('#app');
